//
//  Extension+UIImageView.swift
//  SZZweibo
//
//  Created by 申壮壮 on 16/8/10.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit
import SDWebImage

extension UIImageView{
    
    convenience init(imgName: String){
    self.init(image: UIImage(named: imgName))
}
  
    
    
    func sz_setImageWithString(imgName: String?,placeholderImgName:String){
        
        self.sd_setImageWithURL(NSURL(string: imgName ?? ""), placeholderImage: UIImage(named: placeholderImgName))
        
    }

    
    
}

